﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PersonalAccounting.DataAccess;

namespace PersonalAccounting.Business
{
    public class SaldoFacade : IFacade<Saldo>
    {

        #region IFacade<Saldo> Members

        public bool Select(Saldo obj)
        {
            throw new NotImplementedException();
        }

        public void Load(Saldo obj)
        {
            throw new NotImplementedException();
        }

        public bool Insert(Saldo obj)
        {
            throw new NotImplementedException();
        }

        public bool Update(Saldo obj)
        {
            throw new NotImplementedException();
        }

        public bool Delete(Saldo obj)
        {
            throw new NotImplementedException();
        }

        public List<Saldo> GetAll()
        {
            throw new NotImplementedException();
        }

        #endregion


        #region Public Methods

        public List<Saldo> GetSaldos(DateTime fecha)
        {
            DAOSaldo dao = new DAOSaldo();
            List<Saldo> lista = new List<Saldo>();

            foreach (SaldoVO obj in dao.GetSaldos(fecha))
            {
                Saldo saldo = new Saldo(obj);
                lista.Add(saldo);
            }

            return lista;
        }

        #endregion

    }
}